package com.leef.oauth.data.api.ouath;

import com.leef.oauth.data.pojo.Token;

import java.util.Map;

import io.reactivex.Flowable;
import retrofit2.Response;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

/**
 * Created by IWALL on 2017/3/14.
 * Interface Oauth
 * "https://andaily.com/spring-oauth-server/"
 */

public interface OauthService {

    @POST("oauth/token")
    Flowable<Response<Token>> oauthPassword(@QueryMap Map<String, String> map);

    @POST("oauth/token")
    Flowable<Response<Token>> refreshToken(@QueryMap Map<String, String> map);
}
